package com.example.administrator.wallet.view.activity.transaction;

import android.view.View;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.example.administrator.wallet.R;
import com.example.administrator.wallet.base.BaseActivity;

import butterknife.Bind;
import butterknife.OnClick;

/**
 * Effect:
 * <p>
 * Author:  CaiYapeng
 * <p>
 * Time  :  2018/8/9.
 */
public class BuyActivity extends BaseActivity {
    @Bind(R.id.finish_img)
    ImageButton finishImg;
    @Bind(R.id.view_title)
    TextView viewTitle;
    @Bind(R.id.notice)
    TextView notice;
    @Bind(R.id.buy)
    TextView buy;
    @Bind(R.id.coin_icon)
    ImageView coinIcon;
    @Bind(R.id.coin_count)
    TextView coinCount;
    @Bind(R.id.rate)
    TextView rate;
    @Bind(R.id.rate_value)
    TextView rateValue;
    @Bind(R.id.price)
    TextView price;
    @Bind(R.id.price_value)
    TextView priceValue;
    @Bind(R.id.total)
    TextView total;
    @Bind(R.id.total_value)
    TextView totalValue;
    @Bind(R.id.absent)
    TextView absent;
    @Bind(R.id.payment)
    TextView payment;
    @Bind(R.id.copy)
    TextView copy;
    @Bind(R.id.pay_mode)
    ImageView payMode;
    @Bind(R.id.order)
    TextView order;
    @Bind(R.id.data_time)
    TextView dataTime;
    @Bind(R.id.trader)
    TextView trader;
    @Bind(R.id.apps)
    TextView apps;
    @Bind(R.id.count_number)
    TextView countNumber;
    @Bind(R.id.many)
    LinearLayout many;

    @Override
    public void init() {
        setStatuColor();
        initView();
    }

    private void initView() {
        finishImg.setVisibility(View.VISIBLE);
        viewTitle.setText(getString(R.string.buy));
    }

    @Override
    public int getLayoutResource() {
        return R.layout.activity_buy;
    }


    @OnClick({R.id.finish_img, R.id.copy, R.id.order, R.id.trader, R.id.count_number, R.id.many})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.finish_img:
                finish();
                break;
            case R.id.copy:
                break;
            case R.id.order:
                break;
            case R.id.trader:
                break;
            case R.id.count_number:
                break;
            case R.id.many:
                break;
        }
    }
}
